package cn.ljy.uem.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 学期
 *
 * @author 凡渊
 * @date 2022/07/18 10:42:32
 */
@ApiModel(value = "学期")
@Data
@NoArgsConstructor
public class SchoolTerm implements java.io.Serializable{
    private Integer id;
    @Length(min = 2, max = 50, message = "名称长度必须在 {min} - {max} 之间")
    private String name;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date beginDate;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date endDate;
    private String intro;
    private Boolean close;
    private Date createTime;
    private Date updateTime;
}
